import request from '@/utils/request'

// 查询充值订单列表
export function listList(query) {
  return request({
    url: '/whty/list/sonList',
    method: 'get',
    params: query
  })
}

// 查询充值订单详细
export function getList(id) {
  return request({
    url: '/whty/list/' + id,
    method: 'get'
  })
}

// 新增充值订单
export function addList(data) {
  return request({
    url: '/whty/list',
    method: 'post',
    data: data
  })
}

// 修改充值订单
export function updateList(data) {
  return request({
    url: '/whty/list',
    method: 'put',
    data: data
  })
}

// 删除充值订单
export function delList(id) {
  return request({
    url: '/whty/list/' + id,
    method: 'delete'
  })
}

// 导出充值订单
export function exportList(query) {
  return request({
    url: '/whty/list/exportSonOrder',
    method: 'get',
    params: query
  })
}

// 导出充值订单2
export function exportListiccids(query) {
  return request({
    url: '/whty/list/exportSonOrder?orders='+query,
    method: 'get',
  })
}
